package com.dm.cloud.auth.common.mode;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description ="应用关联的用户信息统计：用户关联角色-角色关联应用")
public class AppUserStatistics {

    @Schema(description = "激活的用户数量")
    private Integer activate=0;

    @Schema(description = "冻结的用户数量")
    private Integer freeze=0;

    public void addActivate(){
        if(this.activate==null){
            this.activate=0;
        }
        this.activate++;
    }
    public void addFreezee(){
        if(this.freeze==null){
            this.freeze=0;
        }
        this.freeze++;
    }

}
